Optimal. Leaf size=125 \[ \frac {-a-b x^2}{2 a x^2 \sqrt {a^2+2 a b x^2+b^2 x^4}}-\frac {b \log (x) \left (a+b x^2\right )}{a^2 \sqrt {a^2+2 a b x^2+b^2 x^4}}+\frac {b \left (a+b x^2\right ) \log \left (a+b x^2\right )}{2 a^2 \sqrt {a^2+2 a b x^2+b^2 x^4}} \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 122, normalized size of antiderivative = 0.98, number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {1112, 266, 44} \begin {gather*} -\frac {a+b x^2}{2 a x^2 \sqrt {a^2+2 a b x^2+b^2 x^4}}-\frac {b \log (x) \left (a+b x^2\right )}{a^2 \sqrt {a^2+2 a b x^2+b^2 x^4}}+\frac {b \left (a+b x^2\right ) \log \left (a+b x^2\right )}{2 a^2 \sqrt {a^2+2 a b x^2+b^2 x^4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 44
Rule 266
Rule 1112
Rubi steps
\begin {align*} \int \frac {1}{x^3 \sqrt {a^2+2 a b x^2+b^2 x^4}} \, dx &=\frac {\left (a b+b^2 x^2\right ) \int \frac {1}{x^3 \left (a b+b^2 x^2\right )} \, dx}{\sqrt {a^2+2 a b x^2+b^2 x^4}}\\ &=\frac {\left (a b+b^2 x^2\right ) \operatorname {Subst}\left (\int \frac {1}{x^2 \left (a b+b^2 x\right )} \, dx,x,x^2\right )}{2 \sqrt {a^2+2 a b x^2+b^2 x^4}}\\ &=\frac {\left (a b+b^2 x^2\right ) \operatorname {Subst}\left (\int \left (\frac {1}{a b x^2}-\frac {1}{a^2 x}+\frac {b}{a^2 (a+b x)}\right ) \, dx,x,x^2\right )}{2 \sqrt {a^2+2 a b x^2+b^2 x^4}}\\ &=-\frac {a+b x^2}{2 a x^2 \sqrt {a^2+2 a b x^2+b^2 x^4}}-\frac {b \left (a+b x^2\right ) \log (x)}{a^2 \sqrt {a^2+2 a b x^2+b^2 x^4}}+\frac {b \left (a+b x^2\right ) \log \left (a+b x^2\right )}{2 a^2 \sqrt {a^2+2 a b x^2+b^2 x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 54, normalized size = 0.43 \begin {gather*} -\frac {\left (a+b x^2\right ) \left (-b x^2 \log \left (a+b x^2\right )+a+2 b x^2 \log (x)\right )}{2 a^2 x^2 \sqrt {\left (a+b x^2\right )^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [B] time = 0.60, size = 380, normalized size = 3.04 \begin {gather*} \frac {\left (\sqrt {a^2+2 a b x^2+b^2 x^4}-\sqrt {b^2} x^2\right )^2 \left (\frac {b \log \left (\sqrt {a^2+2 a b x^2+b^2 x^4}+a-\sqrt {b^2} x^2\right )}{2 a^2}-\frac {b \log \left (a^3+a^2 \sqrt {b^2} x^2-a^2 \sqrt {a^2+2 a b x^2+b^2 x^4}\right )}{2 a^2}\right )}{-2 \sqrt {b^2} x^2 \sqrt {a^2+2 a b x^2+b^2 x^4}+a^2+2 a b x^2+2 b^2 x^4}+\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \left (a^2 b+4 a b^2 x^2+4 b^3 x^4\right )+\sqrt {b^2} \left (-a^3-5 a^2 b x^2-8 a b^2 x^4-4 b^3 x^6\right )}{a \sqrt {b^2} \sqrt {a^2+2 a b x^2+b^2 x^4} \left (2 a^2 x^2+8 a b x^4+8 b^2 x^6\right )+a \left (-2 a^3 b x^2-10 a^2 b^2 x^4-16 a b^3 x^6-8 b^4 x^8\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.58, size = 33, normalized size = 0.26 \begin {gather*} \frac {b x^{2} \log \left (b x^{2} + a\right ) - 2 \, b x^{2} \log \relax (x) - a}{2 \, a^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 52, normalized size = 0.42 \begin {gather*} -\frac {1}{2} \, {\left (\frac {b \log \left (x^{2}\right )}{a^{2}} - \frac {b \log \left ({\left | b x^{2} + a \right |}\right )}{a^{2}} - \frac {b x^{2} - a}{a^{2} x^{2}}\right )} \mathrm {sgn}\left (b x^{2} + a\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 51, normalized size = 0.41 \begin {gather*} -\frac {\left (b \,x^{2}+a \right ) \left (2 b \,x^{2} \ln \relax (x )-b \,x^{2} \ln \left (b \,x^{2}+a \right )+a \right )}{2 \sqrt {\left (b \,x^{2}+a \right )^{2}}\, a^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.29, size = 33, normalized size = 0.26 \begin {gather*} \frac {b \log \left (b x^{2} + a\right )}{2 \, a^{2}} - \frac {b \log \left (x^{2}\right )}{2 \, a^{2}} - \frac {1}{2 \, a x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.45, size = 75, normalized size = 0.60 \begin {gather*} \frac {a\,b\,\mathrm {atanh}\left (\frac {a^2+b\,a\,x^2}{\sqrt {a^2}\,\sqrt {a^2+2\,a\,b\,x^2+b^2\,x^4}}\right )}{2\,{\left (a^2\right )}^{3/2}}-\frac {\sqrt {a^2+2\,a\,b\,x^2+b^2\,x^4}}{2\,a^2\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.32, size = 31, normalized size = 0.25 \begin {gather*} - \frac {1}{2 a x^{2}} - \frac {b \log {\relax (x )}}{a^{2}} + \frac {b \log {\left (\frac {a}{b} + x^{2} \right )}}{2 a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________